
from south.db import db
from django.db import models
from core.models import *

class Migration:
    
    def forwards(self, orm):
        
        # Adding field 'ResumeEntry.grade_earned'
        db.add_column('core_resumeentry', 'grade_earned', orm['core.resumeentry:grade_earned'])
        
        # Adding field 'ResumeEntry.skill_level'
        db.add_column('core_resumeentry', 'skill_level', orm['core.resumeentry:skill_level'])
        
        # Changing field 'Event.access_level_required'
        # (to signature: django.db.models.fields.IntegerField(default=0))
        db.alter_column('core_event', 'access_level_required', orm['core.event:access_level_required'])
        
        # Changing field 'Place.access_level_required'
        # (to signature: django.db.models.fields.IntegerField(default=0))
        db.alter_column('core_place', 'access_level_required', orm['core.place:access_level_required'])
        
        # Changing field 'Opinion.access_level_required'
        # (to signature: django.db.models.fields.IntegerField(default=0))
        db.alter_column('core_opinion', 'access_level_required', orm['core.opinion:access_level_required'])
        
        # Changing field 'ProjectUpdate.access_level_required'
        # (to signature: django.db.models.fields.IntegerField(default=0))
        db.alter_column('core_projectupdate', 'access_level_required', orm['core.projectupdate:access_level_required'])
        
        # Changing field 'Argument.access_level_required'
        # (to signature: django.db.models.fields.IntegerField(default=0))
        db.alter_column('core_argument', 'access_level_required', orm['core.argument:access_level_required'])
        
        # Changing field 'ResumeEntry.parent'
        # (to signature: django.db.models.fields.related.ForeignKey(to=orm['core.ResumeEntry'], null=True, blank=True))
        db.alter_column('core_resumeentry', 'parent_id', orm['core.resumeentry:parent'])
        
        # Changing field 'ResumeEntry.access_level_required'
        # (to signature: django.db.models.fields.IntegerField(default=0))
        db.alter_column('core_resumeentry', 'access_level_required', orm['core.resumeentry:access_level_required'])
        
        # Changing field 'Project.access_level_required'
        # (to signature: django.db.models.fields.IntegerField(default=0))
        db.alter_column('core_project', 'access_level_required', orm['core.project:access_level_required'])
        
    
    
    def backwards(self, orm):
        
        # Deleting field 'ResumeEntry.grade_earned'
        db.delete_column('core_resumeentry', 'grade_earned')
        
        # Deleting field 'ResumeEntry.skill_level'
        db.delete_column('core_resumeentry', 'skill_level')
        
        # Changing field 'Event.access_level_required'
        # (to signature: django.db.models.fields.IntegerField())
        db.alter_column('core_event', 'access_level_required', orm['core.event:access_level_required'])
        
        # Changing field 'Place.access_level_required'
        # (to signature: django.db.models.fields.IntegerField())
        db.alter_column('core_place', 'access_level_required', orm['core.place:access_level_required'])
        
        # Changing field 'Opinion.access_level_required'
        # (to signature: django.db.models.fields.IntegerField())
        db.alter_column('core_opinion', 'access_level_required', orm['core.opinion:access_level_required'])
        
        # Changing field 'ProjectUpdate.access_level_required'
        # (to signature: django.db.models.fields.IntegerField())
        db.alter_column('core_projectupdate', 'access_level_required', orm['core.projectupdate:access_level_required'])
        
        # Changing field 'Argument.access_level_required'
        # (to signature: django.db.models.fields.IntegerField())
        db.alter_column('core_argument', 'access_level_required', orm['core.argument:access_level_required'])
        
        # Changing field 'ResumeEntry.parent'
        # (to signature: django.db.models.fields.related.ForeignKey(to=orm['core.ResumeEntry']))
        db.alter_column('core_resumeentry', 'parent_id', orm['core.resumeentry:parent'])
        
        # Changing field 'ResumeEntry.access_level_required'
        # (to signature: django.db.models.fields.IntegerField())
        db.alter_column('core_resumeentry', 'access_level_required', orm['core.resumeentry:access_level_required'])
        
        # Changing field 'Project.access_level_required'
        # (to signature: django.db.models.fields.IntegerField())
        db.alter_column('core_project', 'access_level_required', orm['core.project:access_level_required'])
        
    
    
    models = {
        'core.argument': {
            'access_level_required': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'correct': ('django.db.models.fields.NullBooleanField', [], {'null': 'True'}),
            'date_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'my_answer': ('django.db.models.fields.TextField', [], {}),
            'opposing_answer': ('django.db.models.fields.TextField', [], {}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.controlledfile': {
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '2000'}),
            'path': ('django.db.models.fields.CharField', [], {'max_length': '2000'})
        },
        'core.event': {
            'access_level_required': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'date_time': ('django.db.models.fields.DateTimeField', [], {}),
            'date_time_to': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'place': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Place']"}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.opinion': {
            'access_level_required': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'date_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'position': ('django.db.models.fields.IntegerField', [], {}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.place': {
            'access_level_required': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'coordinates': ('django.contrib.gis.db.models.fields.PointField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.project': {
            'access_level_required': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'}),
            'web_link': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
        },
        'core.projectupdate': {
            'access_level_required': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'current_status': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'date_time': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.Project']"}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        },
        'core.resumeentry': {
            'access_level_required': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
            'description': ('django.db.models.fields.TextField', [], {}),
            'entry_type': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'grade_earned': ('django.db.models.fields.CharField', [], {'max_length': '20', 'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['core.ResumeEntry']", 'null': 'True', 'blank': 'True'}),
            'skill_level': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
            'tags': ('TagField', [], {}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '600'})
        }
    }
    
    complete_apps = ['core']
